from django.conf import settings as conf
from general_utils import *

def settings(request):
	s = conf.INSTALLATION_SETTINGS
	return {'settings':s}

def profile_picture(request):
	if request.user.is_authenticated and request.user.email:
		return {'gravatar_url':getgravatar(request.user)}
	else:
		return None